<div class="row centre">
    <div class="btn-group">
        <button type="button" ng-click="modeFct(1)" class="btn btn-primary">binaire</button>
        <button type="button" ng-click="modeFct(0)" class="btn btn-primary">analogique</button>
        <button type="button" ng-click="modeFct(2)" class="btn btn-primary">température</button>
    </div>
</div>

<br />

<div class="row centre" ng-show="boolBin">
    <div class="input-group">
        <span class="input-group-addon">Pin n° : {{numPin}}</span>
        <input type="range" class="form-control" min="1" max="13" ng-model="numPin"/>
    </div>
</div>

<div class="row centre" ng-show="boolAna">
    <div class="input-group">
        <span class="input-group-addon">Pin n° : {{numPin}}</span>
        <input type="range" class="form-control" min="0" max="5" ng-model="numPin"/>
    </div>
</div>

<br />

<div class="row centre">
    <button class="center-block btn btn-sm btn-warning" ng-click="displayList = !displayList" >Liste Aruinos</button>
    <div class="well" ng-repeat="arduino in arduinos" ng-show="displayList">
        <input type="checkbox" ng-model="arduino.checked" ng-checked="arduino.checked">
        <span>{{arduino.ip}}</span>
    </div>
    <br />
    <button class="btn btn-info" ng-click="valider()">Valider</button>
</div>

<div class="row centre">
    <ANY ng-switch="indexReponse" ng-model="indexReponse">
        <ANY ng-switch-when="0"></ANY>
        <ANY ng-switch-when="1"><success-callback-directive></success-callback-directive></ANY>
        <ANY ng-switch-when="2"><error-callback-directive info="info"></<error-callback-directive></ANY>
        <ANY ng-switch-when="3"><warning-callback-directive  ></warning-callback-directive></ANY>
        <ANY ng-switch-default></ANY>
    </ANY>

    <div ng-repeat="reponse in reponses">
        <span>{{reponse.data.id}} : {{reponse.data.etat[0]}}<br> </span>
    </div>
</div>